


#ifndef __UFIFO_H
#define __UFIFO_H

#include "user_type.h"


//实现顺序栈，使用数组来实现  
typedef struct ulifo_t  
{    
    uint8_t *data;
    size_t  maxsize;    
    int16_t top;    //数组索引
}ulifo_t; 


void ulifo_init(ulifo_t *s,uint8_t *buff,size_t size)  ;
int8_t ulifo_Push(ulifo_t *s,void *data,size_t len)  ;
int8_t ulifo_Pop(ulifo_t *s,void *data,int16_t len)  ;
void ulifo_Destroy(ulifo_t *s)  ;






#endif






